l = [('222', 2), ('111', 1), ('333', 3)]
sorted(l,key=lambda x:x[1])
print l
